const route = [
  {
    path: "/",
    name: "admin",
    component: () => import("./layout/index"),
    redirect: { name: "admin-dashboard" },
    children: [
      {
        path: "dashboard",
        name: "admin-dashboard",
        component: () => import("./dashboard/index"),
      },
      {
        path: "article",
        name: "admin-article",
        component: () => import("./article/index"),
        redirect: { name: "admin-article-list" },
        children: [
          {
            path: "list",
            name: "admin-article-list",
            component: () => import("./article/ArticleList"),
          },
          {
            path: "editor",
            name: "admin-article-editor",
            component: () => import("./article/ArticleEditor"),
          },
          {
            path: "detail",
            name: "admin-article-detail",
            component: () => import("./article/ArticleDetail"),
          },
        ]
      },
      {
        path: "file",
        name: "admin-file",
        component: () => import("./file/index"),
      },

      {
        path: "tag",
        name: "admin-tag",
        component: () => import("./tag/index"),
      },
      {
        path: "comment",
        name: "admin-comment",
        component: () => import("./comment/index"),
      },
      {
        path: "user",
        name: "admin-user",
        component: () => import("./user/UserList")
      },
    ]
  },
  {
    path: "/login",
    name: "login",
    component: () => import("./login/index"),
  },


];

export { route };